package com.lwei.ljpro.entry;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 工作实体
 */
public class WorkingEntry extends BaseEntry{

    private static final long serialVersionUID = -2562593661053543464L;

    private Long userId;

    private String userName;

    /**
     * 计划事项
     */
    private String plan;

    /**
     * 制定时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date planTime;

    /**
     * 是否完成
     */
    private Boolean done = false;

    /**
     * 完成时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date doneTime;

    /**
     * 完成时间止
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date doneTimeEnd;

    /**
     * 实际情况说明
     */
    private String context;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    public Boolean getDone() {
        return done;
    }

    public void setDone(Boolean done) {
        this.done = done;
    }

    public Date getDoneTime() {
        return doneTime;
    }

    public void setDoneTime(Date doneTime) {
        this.doneTime = doneTime;
    }

    public Date getDoneTimeEnd() {
        return doneTimeEnd;
    }

    public void setDoneTimeEnd(Date doneTimeEnd) {
        this.doneTimeEnd = doneTimeEnd;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
